package com.minshenglife.zanzan.dao;

import java.util.Map;

import org.springframework.stereotype.Repository;

import com.minshenglife.commons.dal.EntityDao;
import com.minshenglife.commons.dal.MyBatisRepository;
import com.minshenglife.zanzan.entity.Rule;


/**
 * 
 * @author huodd
 * @date 2014.05.14
 */
@Repository
@MyBatisRepository
public interface RuleDao extends EntityDao<Rule> {
	
	/**获取第一个可用有效规则  规则类型、有效期内；修改时间倒序的第一条规则*/
	public Rule getFirstValidRule(Map<String,Object> map);
}
